// 商品模块 路径
// 导入home页面
import Home from "@/view/home.vue"
import { RouteRecordRaw } from "vue-router"
// 转化 其他语言
import i18n from "@/i18n"
const goodsRouter: RouteRecordRaw = {
  path: '/goods',
  name: 'goods',
  component: Home,
  meta: {
    title: 'menus.wGoodsManger',
    icon: 'TakeawayBox',
    permission: "system:goods",

  },
  children: [
    // 商品种类
    {
      path: 'category',
      name: 'category',
      component: () => import('@/view/children/goods/category.vue'),
      meta: {
        title: 'menus.wGoodsCategory',
        icon: 'ShoppingBag',
        permission: 'system:goods:goodsCategory',
      },
    },
    // 商品查询
    {
      path: 'goodQuery',
      name: 'goodQuery',
      component: () => import('@/view/children/goods/goodQuery.vue'),
      meta: {
        title: 'menus.wGoodsInfo',
        icon: 'SoldOut',
        permission: 'system:goods:goodsInfo',
      },
    }
  ]
}

export default goodsRouter